/**
 * 
 */
package com.sb.money.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author stefan
 */
public class MoneyServiceException extends Exception {

    /**
     * logger.
     */
    public static final Logger logger = LoggerFactory
            .getLogger(MoneyServiceException.class);

    /**
     * generated serial version.
     */
    private static final long serialVersionUID = -8805435512735640411L;

    /**
     * default constructor.
     * 
     * @param message
     *            to log
     * @param e
     *            exception
     */
    public MoneyServiceException(final String message, final Exception e) {
        super(message, e);

        final String msg = e.toString();

        logger.error(message + " due to the: " + msg);
    }
}